Request

class Request(val op_code: OpCode? = null, val scan_params: ScanParams? = null, val config: WifiConfig? = null, unknownFields: ByteString = ByteString.EMPTY) : Message<Request, Nothing>

The request type, sent to the device.

Constructors

Link copied to clipboard
constructor(op_code: OpCode? = null, scan_params: ScanParams? = null, config: WifiConfig? = null, unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adapter: ProtoAdapter<Request>
Link copied to clipboard
val config: WifiConfig? = null

The parameter for SET_CONFIG request.

Link copied to clipboard
val op_code: OpCode? = null

The op_code has to be optional, as new op codes may be added in the future. They would fail to be decoded in earlier versions, causing am error. With the optional modifier, they will be decoded as null.

Link copied to clipboard
val scan_params: ScanParams? = null

Parameters: The parameter for START_SCAN request.

Link copied to clipboard
open val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(op_code: OpCode? = this.op_code, scan_params: ScanParams? = this.scan_params, config: WifiConfig? = this.config, unknownFields: ByteString = this.unknownFields): Request
Link copied to clipboard
fun encode(stream: OutputStream)
fun encode(sink: BufferedSink)
Link copied to clipboard
fun encodeByteString(): ByteString
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard